package com.reder.practice.common.enums.state;

import com.reder.practice.common.enums.Statable;
import lombok.Getter;

/**
 * 管理员业务响应枚举类
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/23 15:19:58</p>
 */
@Getter
public enum ManagerState implements Statable {

    ADD_FAILED(-1, "关注失败"),
    USERNAME_OR_PASSWORD_IS_WRONG(-2, "用户名或密码是错误的"),
    USERNAME_IS_EXISTED(-3, "用户名已经存在"),
    REMOVE_FAILED(-4, "删除失败"),
    UPDATE_LOGIN_TIME_FAILED(-5, "更新登录时间失败");

    int code = Statable.SUCCESS_CODE;
    String msg = null;

    ManagerState(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
